﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类CALIB_DATA
     ///</summary>
     public class CALIB_DATA
     {
         private int __ID=0 ;
         private string __JCXH=string.Empty ;
         private string __DevID=string.Empty ;
         private string __DevName=string.Empty ;
         private string __DevCalibName=string.Empty ;
         private string __DevCalibNum=string.Empty ;
         private string __DevNo=string.Empty ;
         private string __DevCalibPot=string.Empty ;
         private string __StartTime=string.Empty ;
         private string __EndTime=string.Empty ;
         private string __DYZ=string.Empty ;
         private string __CLZ=string.Empty ;
         private string __BZZ=string.Empty ;
         private string __JDWC=string.Empty ;
         private string __XDWC=string.Empty ;
         private string __PD=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public CALIB_DATA()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("JCXH",false);
             this.__Changed.Add("DevID",false);
             this.__Changed.Add("DevName",false);
             this.__Changed.Add("DevCalibName",false);
             this.__Changed.Add("DevCalibNum",false);
             this.__Changed.Add("DevNo",false);
             this.__Changed.Add("DevCalibPot",false);
             this.__Changed.Add("StartTime",false);
             this.__Changed.Add("EndTime",false);
             this.__Changed.Add("DYZ",false);
             this.__Changed.Add("CLZ",false);
             this.__Changed.Add("BZZ",false);
             this.__Changed.Add("JDWC",false);
             this.__Changed.Add("XDWC",false);
             this.__Changed.Add("PD",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__JCXH =string.Empty;
             this.__DevID =string.Empty;
             this.__DevName =string.Empty;
             this.__DevCalibName =string.Empty;
             this.__DevCalibNum =string.Empty;
             this.__DevNo =string.Empty;
             this.__DevCalibPot =string.Empty;
             this.__StartTime =string.Empty;
             this.__EndTime =string.Empty;
             this.__DYZ =string.Empty;
             this.__CLZ =string.Empty;
             this.__BZZ =string.Empty;
             this.__JDWC =string.Empty;
             this.__XDWC =string.Empty;
             this.__PD =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["JCXH"] = false;
             this.__Changed["DevID"] = false;
             this.__Changed["DevName"] = false;
             this.__Changed["DevCalibName"] = false;
             this.__Changed["DevCalibNum"] = false;
             this.__Changed["DevNo"] = false;
             this.__Changed["DevCalibPot"] = false;
             this.__Changed["StartTime"] = false;
             this.__Changed["EndTime"] = false;
             this.__Changed["DYZ"] = false;
             this.__Changed["CLZ"] = false;
             this.__Changed["BZZ"] = false;
             this.__Changed["JDWC"] = false;
             this.__Changed["XDWC"] = false;
             this.__Changed["PD"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[JCXH]的数据
         /// </summary>
         public string JCXH
         {
              set{ __JCXH = value.Replace("'","’"); __Changed["JCXH"] = true;}
              get{return __JCXH;}
         }
         /// <summary>
         ///设置或获取类中的[DevID]的数据
         /// </summary>
         public string DevID
         {
              set{ __DevID = value.Replace("'","’"); __Changed["DevID"] = true;}
              get{return __DevID;}
         }
         /// <summary>
         ///设置或获取类中的[DevName]的数据
         /// </summary>
         public string DevName
         {
              set{ __DevName = value.Replace("'","’"); __Changed["DevName"] = true;}
              get{return __DevName;}
         }
         /// <summary>
         ///设置或获取类中的[DevCalibName]的数据
         /// </summary>
         public string DevCalibName
         {
              set{ __DevCalibName = value.Replace("'","’"); __Changed["DevCalibName"] = true;}
              get{return __DevCalibName;}
         }
         /// <summary>
         ///设置或获取类中的[DevCalibNum]的数据
         /// </summary>
         public string DevCalibNum
         {
              set{ __DevCalibNum = value.Replace("'","’"); __Changed["DevCalibNum"] = true;}
              get{return __DevCalibNum;}
         }
         /// <summary>
         ///设置或获取类中的[DevNo]的数据
         /// </summary>
         public string DevNo
         {
              set{ __DevNo = value.Replace("'","’"); __Changed["DevNo"] = true;}
              get{return __DevNo;}
         }
         /// <summary>
         ///设置或获取类中的[DevCalibPot]的数据
         /// </summary>
         public string DevCalibPot
         {
              set{ __DevCalibPot = value.Replace("'","’"); __Changed["DevCalibPot"] = true;}
              get{return __DevCalibPot;}
         }
         /// <summary>
         ///设置或获取类中的[StartTime]的数据
         /// </summary>
         public string StartTime
         {
              set{ __StartTime = value.Replace("'","’"); __Changed["StartTime"] = true;}
              get{return __StartTime;}
         }
         /// <summary>
         ///设置或获取类中的[EndTime]的数据
         /// </summary>
         public string EndTime
         {
              set{ __EndTime = value.Replace("'","’"); __Changed["EndTime"] = true;}
              get{return __EndTime;}
         }
         /// <summary>
         ///设置或获取类中的[DYZ]的数据
         /// </summary>
         public string DYZ
         {
              set{ __DYZ = value.Replace("'","’"); __Changed["DYZ"] = true;}
              get{return __DYZ;}
         }
         /// <summary>
         ///设置或获取类中的[CLZ]的数据
         /// </summary>
         public string CLZ
         {
              set{ __CLZ = value.Replace("'","’"); __Changed["CLZ"] = true;}
              get{return __CLZ;}
         }
         /// <summary>
         ///设置或获取类中的[BZZ]的数据
         /// </summary>
         public string BZZ
         {
              set{ __BZZ = value.Replace("'","’"); __Changed["BZZ"] = true;}
              get{return __BZZ;}
         }
         /// <summary>
         ///设置或获取类中的[JDWC]的数据
         /// </summary>
         public string JDWC
         {
              set{ __JDWC = value.Replace("'","’"); __Changed["JDWC"] = true;}
              get{return __JDWC;}
         }
         /// <summary>
         ///设置或获取类中的[XDWC]的数据
         /// </summary>
         public string XDWC
         {
              set{ __XDWC = value.Replace("'","’"); __Changed["XDWC"] = true;}
              get{return __XDWC;}
         }
         /// <summary>
         ///设置或获取类中的[PD]的数据
         /// </summary>
         public string PD
         {
              set{ __PD = value.Replace("'","’"); __Changed["PD"] = true;}
              get{return __PD;}
         }
    }
}
